package cn.vcjf.weapp.api.active.service;

import cn.vcjf.weapp.api.active.entity.GoodsActive;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zhengzihang
 * @since 2018-09-26
 */
public interface GoodsActiveService extends IService<GoodsActive> {

	GoodsActive findActiveInfo(GoodsActive goodsActive);

	/**
	 * 删除过期的活动
	 *
	 * @return
	 */
	int updateExpireActive();

	Page<GoodsActive> selectHotActive(Page<GoodsActive> page, EntityWrapper<GoodsActive> wrapper);
}
